package binarytree;

/**
 * @author tongchen
 * @create 2022-10-20 21:25
 */
public class BinaryTree {
    BTNode root;//建立根结点

    public static void main(String[] args) {
        BTNode node1 = new BTNode(1);
        BTNode node2 = new BTNode(2);
        BTNode node3 = new BTNode(3);
        BTNode node4 = new BTNode(4);
        BTNode node5 = new BTNode(5);
        BTNode node6 = new BTNode(6);
        node1.left=node2;
        node2.left=node3;
        node1.right=node4;
        node4.left=node5;
        node4.right=node6;
    }
    public void preOrder(BTNode root){

    }
    public void midOrder(BTNode root){

    }
    public void lastOrder(BTNode root){

    }
}
class BTNode{
    int val;
    BTNode left;
    BTNode right;

    public BTNode(int val) {
        this.val = val;
    }

}
